package com.oss.dto.oss.purchasecourses;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * @author chengqiang
 */
@Data
public class PurchaseCoursesAddDto{
    // 学员ID
    @NotBlank(message = "学员ID不能为空")
    private String studentID;
    // 购课类型(字典值)
    private String type;
    // 购课日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate purchaseDate;
    // 消费金额
    private BigDecimal consumeAmout;
    // 重心币份额
    private BigDecimal coreCoin;
    // 备注
    private String remark;
}
